package com.zking.service.impl;

import com.zking.entity.Address;
import com.zking.entity.Users;
import com.zking.service.AddressService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class AddressServiceImpl extends BaseServiceImpl<Address> implements AddressService {
    @Override
    public List<Address> findByUid(int id) {
        Address add = new Address();
        add.setUserid(id);
        return mapper.select(add);
    }
}
